package org.tailor

class Tailor {
    long tailorID
    String tailorName
    String contactFName
    String contactLName
    String contactTitle
    String Address01
    String Address02
    String City
    String State
    int postalCode
    String country  
    int phone
    int fax
    String email
    String url
    String paymentMethods
    String discountType
    String typeShirt
    String notes
    String tailorDescription
    String login
    String password
    
    

     static hasMany=[shirt:Shirt]
     //static hasMany = Regions 
     static belongsTo=[regions:Regions]
    
    static constraints = {
        tailorID(blank:false, unique:true)
        tailorName(blank:false)
        login (blank: false, nullable: false, unique: true)
        password (blank:false, password:true)
    }
    String toString() {
        login
       
    }
}
